﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class DeliveryRobot : Robot
    {
        public int hours { get; set; }
        public DeliveryRobot(string name, int hours) : base(name)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("传菜机器人现在启动");
            Console.WriteLine("连续工作时间为：{0}。", this.hours);
        }
    }
}
